package com.easy.tool.entity;

import lombok.Data;

/**
 * @author 高俊
 * @create 2021-11-2021/11/9-9:23
 */
@Data
public class  RuleEntity<T> {
    /**
     * 对比参数
     */
    private T param;

    private String term;

    private boolean result = Boolean.TRUE;

    public RuleEntity() {
    }

    public RuleEntity(boolean result) {
        this.result = result;
    }

    public RuleEntity(T param) {
        this.param = param;
    }

    public RuleEntity(T param, boolean result) {
        this.param = param;
        this.result = result;
    }

    public RuleEntity(T param, String term, boolean result) {
        this.param = param;
        this.term = term;
        this.result = result;
    }

    @Override
    public String toString() {
        return "RuleEntity{" +
                "param=" + param +
                ", term='" + term + '\'' +
                ", result=" + result +
                '}';
    }
}
